package cn.aifeix.org.mapper;

import cn.aifeix.basic.mapper.BaseMapper;
import cn.aifeix.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    List<Employee> findByDeptId(Long departmentId);

    Employee findByName(String username);

    void addMiddle(@Param("eid") Long id, @Param("roles") List<Long> roles);

    void deleteMiddle(Long id);

    Employee findByLogininfoId(Long id);

    List<Employee> findByShopId(Long shopId);
}
